import 'package:library_base/entities/generated/json/base/json_field.dart';
import 'package:library_base/entities/generated/json/weighting_goods_child_entity.g.dart';
import 'dart:convert';
import 'package:library_base/utils/sp_util.dart';

@JsonSerializable()
class WeighingGoodsChildEntity{

  late String stockOutId;
  late String goodsCode;
  late bool singleEntry;
  late String goodsName;
  late String goodsBarCode;
  late String batchNo;
  late String locationId;
  late String locationName;
  late String status;

  late double stockOutCount;

  late double stockOutWeigh;
  ///去皮主重量
  late double mainWeigh;
  ///辅重量
  late double subWeigh;
  ///带皮主重量
  late double skinMainWeight;
  ///皮重
  late double skinWeight;
  ///地址简称
  late String address;

  WeighingGoodsChildEntity();

  factory WeighingGoodsChildEntity.fromJson(Map<String, dynamic> json) => $WeighingGoodsChildEntityFromJson(json);

  Map<String, dynamic> toJson() => $WeighingGoodsChildEntityToJson(this);

  @override
  String toString() => json.encode(this);

}


